package com.caolei1992.web.controller;


import com.caolei1992.web.vo.AjaxResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author caolei
 * @version 1.0
 * @since 2019/11/19
 */
@RestController
public class IndexController {

    @RequestMapping("401")
    public AjaxResult req401() {
        return AjaxResult.failWithStatus(-9001, "unauthorized");
    }

    @RequestMapping("404")
    public AjaxResult req404() {
        return AjaxResult.failWithStatus(-404, "not found");
    }

    @RequestMapping("500")
    public AjaxResult req500() {
        return AjaxResult.failWithStatus(-500, "not found");
    }
}
